package com.aos.erp.schools.model.schoolclass;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


@TableName("T_DRIVERS_SCHOOL_CLASS")
@Data
public class AddDriversSchoolClassRo implements Serializable {
	private static final long serialVersionUID = 1L;
	

    @ApiModelProperty("名称")
    @NotEmpty (message = "班型名称不能为空")
    private String name;


    @ApiModelProperty("类别(( 来自字典表)1：一车一人  2：一车多人  ）")
    @NotNull(message = "班型类别不能为空")
    private Long type;


    @ApiModelProperty("每车人数")
    @NotNull(message = "每车人数不能为空")
    @Max(value = 1000,message = "每车人数最大不超过1000人")
    private Integer peopleNumber;


    @ApiModelProperty("车型ID(来自字典表)")
    @NotNull(message = "车型ID不能为空")
    private Long carId;


    @ApiModelProperty("学车时间(来自字典表)")
    @NotNull(message = "学车时间不能为空")
    private Long learnId;


    @ApiModelProperty("班型描述")
    @NotEmpty (message = "班型描述不能为空")
    private String reason;


    private String currentUserId;


}
